MkPyDeps
:fa-brands-github: Show source on GitHub
Node for showing a Dependency graph.¶
Bases: MkNode
__init__
¶
__init__(
module: str | PathLike[str] | ModuleType | None = None,
*,
max_bacon: int | None = None,
max_module_depth: int | None = None,
only_cycles: bool = False,
clusters: bool = False,
**kwargs: Any
) -> None
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
module
|
str | PathLike[str] | ModuleType | None
|
Path to the module |
None
|
max_bacon
|
int | None
|
Max bacon |
None
|
max_module_depth
|
int | None
|
Maximum module depth to display |
None
|
only_cycles
|
bool
|
Only show import cycles |
False
|
clusters
|
bool
|
draw external dependencies as separate clusters |
False
|
kwargs
|
Any
|
Keyword arguments passed to parent |
{}
|
| Name | Children | Inherits |
|---|---|---|
| MkNode mknodes.basenodes.mknode Base class for everything which can be expressed as Markup. |
graph TD
3369307935["mkpydeps.MkPyDeps"]
1359323199["mknode.MkNode"]
2751680898["builtins.object"]
1359323199 --> 3369307935
2751680898 --> 1359323199
/home/runner/work/mknodes/mknodes/src/mknodes/templatenodes/mkpydeps/metadata.toml
[metadata]
name = "MkPyDeps"
icon = "mdi:code-json"
group = "documentation"
# [examples.regular]
# condition = "{{ 'CI' | getenv }}"
# title = "Regular"
# jinja = """
# {{ "mknodes/data/tools.py" | MkPyDeps(max_bacon=1, max_module_depth=1) }}
# """
# [output.markdown]
# template = """
# <body>
# {{ node.get_svg() }}
# </body>
# """
Page info
Code for this page
Resources
Resources(css=[],
markdown_extensions={'pymdownx.highlight': {'anchor_linenums': True,
'line_spans': '__span',
'pygments_lang_class': True},
'pymdownx.superfences': {'custom_fences': [{'class': 'mermaid',
'format': <function fence_code_format at 0x735584c12350>,
'name': 'mermaid'}]},
'tables': {}},
plugins=[Plugin('mkdocstrings')],
js=[],
assets=[],
packages=[])